﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace ThresholdAssistant.WebAPI.Models
{
    /// <summary>
    /// 系统参数表
    /// </summary>
    [Table("t_config")]
    public class Config
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        [Column("id")]
        public long Id { get; set; }

        /// <summary>
        /// 分组Id
        /// </summary>
        [Column("group_id")]
        public long GroupId { get; set; }

        /// <summary>
        /// 参数名称
        /// </summary>
        [Column("config_name")]
        public string ConfigName { get; set; }

        /// <summary>
        /// 参数值
        /// </summary>
        [Column("config_value")]
        public string ConfigValue { get; set; }

        /// <summary>
        /// 参数类型
        /// </summary>
        [Column("config_type")]
        public string ConfigType { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("create_time")]
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新时间
        /// </summary>
        [Column("update_time")]
        public DateTime UpdateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 备注
        /// </summary>
        [Column("remark")]
        public string Remark { get; set; }

        /// <summary>
        /// 控件类型
        /// </summary>
        [Column("control_type")]
        public string ControlType { get; set; }
        /// <summary>
        /// 控件图标
        /// </summary>
        [Column("control_icon")]
        public string ControlIcon { get; set; }

    }
}
